package com.qianclass.talklive.app.utils;

public class Constant {
   public static final String SP_KEY_USERNAME = "username";
   public static final String SP_KEY_PWD         = "pwd";

   /*进入教室的时间戳*/
   public static final String ENTER_CLASSROOM_TIME = "enter_classroom_time";
   /*进入教室的向导*/
   public static final String ENTER_CLASSROOM_GUIDE = "enter_classroom_guide";

   /*发送消息的类型*/
   public static final int CHATMSGTYPE = 1;
   public static final int WHITEBOARDMSGTYPE = 2;
   public static final int CONTROLMSGTYPE = 3;

   /***********************zh/en-start************************/
   public static final String BASEAPI_ZH_IP = "120.236.210.166";
   public static final String BASEAPI_EN_IP = "120.236.210.166";

   public static final String BASE_ZH_IP = "120.236.210.166";
   public static final String BASE_EN_IP = "120.236.210.166";

   public static final String BASEIM_ZH_IP = "120.236.210.166";

   public static final String HTML5_ZH_IP = "http://120.236.210.166:8082/";
   public static final String HTML5_EN_IP = "http://120.236.210.166:8082/";

   public static String H5BASEURL = HTML5_ZH_IP;

   public static final String BASERECORDURL = "http://agora.record.sample.com/";

   public static String LOCAL_DYNAMIC_IP = BASEAPI_ZH_IP;
   public static String BASE_DYNAMIC_IP = BASEAPI_ZH_IP;

   public static String WHITEBOARDFILEDIR = "IdHYwoLGnCVXctW";

   public static String getH5BASEURL() {
      return H5BASEURL;
   }

   public static void setH5BASEURL(String h5BASEURL) {
      H5BASEURL = h5BASEURL;
   }

   public static String getBaseDynamicIp() {
      return BASE_DYNAMIC_IP;
   }

   public static String getBaseIMDynamicIp() {
      return BASEIM_ZH_IP;
   }

   public static void setBaseDynamicIp(String baseDynamicIp) {
      BASE_DYNAMIC_IP = baseDynamicIp;
   }

   public static String getLocalDynamicIp() {
      return LOCAL_DYNAMIC_IP;
   }

   public static void setLocalDynamicIp(String localDynamicIp) {
      LOCAL_DYNAMIC_IP = localDynamicIp;
   }

   /*查询服务器地址*/
   public static String getGetDocserverUrl(){
      return "http://" + getLocalDynamicIp() + ":4080/live/GetDocServer";
   }

   /*主地址*/
   public static String getBASEURL() {
      return "http://" + getBaseDynamicIp();
   }

   /*doc地址*/
   public static String getDocUrl() {
      return getBASEURL() + ":40808/";
   }

   /*MP3地址*/
   public static String getMP3URL() {
      return getBASEURL() + ":40808/";
   }

   /*日志上传*/
   public static String getLogUploadUrl() {
      return getBASEURL() + ":4080/live/LogUpload";
   }

   /*客户端版本检测*/
   public static String getCheckClientVersion() {
      return getBASEURL() + ":4080/live/check_client_version";
   }

   /*客户端安装统计*/
   public static String getUserDeviceinfo() {
      return getBASEURL() + ":4080/live/deviceinfo";
   }

   /*登录*/
   public static String getLoginUrl() {
      return getBASEURL() + ":4080/live/agent_user_login";
   }

   /*登录*/
   public static String getSsoLoginUrl() {
      return getBASEURL() + ":2180/livemgn/user_sso_login.do";
   }

   /*课程列表*/
   public static String getCourseList() {
      return getBASEURL() + ":4080/live/agent_user_get_room";
   }

   /*进入教室*/
   public static String getEnterRoomUrl() {
      return getBASEURL() + ":4080/live/agent_user_enter_room";
   }

   /*录像回放*/
   public static String getPlayRecordUrl() {
      return getBASEURL() + ":4080/live/play_record";
   }

   /*当前时间戳*/
   public static String getTimestampUrl() {
      return getBASEURL() + ":4080/live/get_timestamp";
   }

   /*直播频道key*/
   public static String getChannelkeyUrl() {
      return getBASEURL() + ":4080/live/GetChannelKey";
   }

   /*直播录像key*/
   public static String getRecordkeyUrl() {
      return getBASEURL() + ":4080/live/GetRecordKey";
   }

   /*获取短协议*/
   public static String getEnterRoomCommandUrl() {
      return getBASEURL() + ":4080/live/get_enterroom_command";
   }

   /*文件上传*/
   public static String getFileUploadUrl() {
      return getBASEURL() + ":4080/live/file_upload";
   }

   /*开启录像*/
   public static String getStartRecording(){ return getBASEURL() + ":4080/live/start_agora_recording"; }

   /*停止录像*/
   public static String getStopRecording(){ return getBASEURL() + ":4080/live/stop_agora_recording"; }

   /*历史聊天记录*/
   public static String getIMChatHistoryUrl(){ return "http://120.236.210.166:4080/live/get_im_offlinemessage"; }

   /*教室备注信息*/
   public static String getRemarks() {
      return getBASEURL() + ":4080/live/get_room_remarks";
   }

   /*IM短协议获取*/
   public static String getEnterRoomCommand() {
      return getBASEURL() + ":4080/live/agent_get_enterroom_command";
   }

   /*获取房间RoomID*/
   public static String getRoomID() {
      return getBASEURL() + ":4080/live/get_roomid";
   }

   /*获取录像IM信息*/
   public static String getRecordIMInfo() {
      return "http://120.236.210.166:40890/im/get_record";
   }

   /*获取录像视频信息*/
   public static String getRecordVideoInfo() {
      return "http://120.236.210.166:40890/video/get_record_info";
   }

   /***********************zh/en-end************************/
}
